package com.ny.zmb.openapi.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ny.zmb.glxt.entity.PmStore;
import com.ny.zmb.openapi.ysutil.from.merchant.*;

public interface IPmMerchantService {
    /**
     * 绑定提现卡
     *
     * @param obj 对象
     * @return JSONObject
     */
    JSONObject addBankAccount(MerchantAddBankAccount obj);

    JSONObject addBankAccount(MerchantAddBankAccount obj, Integer userId);

    /**
     * 账户查询
     *
     * @param obj 对象
     * @return JSONObject
     */
    JSONObject bankAccountQuery(MerchantBankAccountQuery obj);

    JSONObject bankAccountQuery(MerchantBankAccountQuery obj, Integer userId);

    /**
     * 账户信息变更
     *
     * @param obj 对象
     * @return JSONObject
     */
    JSONObject changePayment(MerchantChangePayment obj);

    JSONObject changePayment(MerchantChangePayment obj, Integer userId);

    /**
     * 提现
     *
     * @param obj 对象
     * @return JSONObject
     */
    JSONObject merchantWithdraw(MerchantWithdraw obj);

    JSONObject merchantWithdraw(MerchantWithdraw obj, Integer userId);

    /**
     * 提现查询
     *
     * @param requestNo 提现请求号
     * @return JSONObject
     */
    JSONObject queryWithdraw(String requestNo);

    JSONObject queryWithdraw(String requestNo, Integer userId);

    JSONObject queryBalances(JSONObject obj);

    IPage<MerchantWithdraw> page(IPage<MerchantWithdraw> page, QueryWrapper<MerchantWithdraw> queryWrapper );
}
